package com.shanzmoo.db.module.product.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shanzmoo.db.module.product.domain.query.ScoreQueryVO;
import com.shanzmoo.db.module.product.domain.vo.ProductScoreVO;
import com.shanzmoo.db.module.product.domain.vo.ScoreDetailVO;
import com.shanzmoo.db.module.product.entity.ProductScoreEntity;
import com.shanzmoo.db.module.product.mapper.ProductScoreMapper;
import com.shanzmoo.db.module.product.service.IProductScoreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xqz
 * @since 2021-04-21
 */
@Service
public class ProductScoreServiceImpl extends ServiceImpl<ProductScoreMapper, ProductScoreEntity> implements IProductScoreService {

    @Override
    public List<ProductScoreVO> getScoreSkuPlatList(ScoreQueryVO scoreQueryVO) {
        return baseMapper.getScoreSkuPlatList(scoreQueryVO);
    }

    @Override
    public IPage<ProductScoreVO> getProductScoreList(ScoreQueryVO scoreQueryVO) {
        return baseMapper.getProductScoreList(scoreQueryVO.page(),scoreQueryVO);
    }

    @Override
    public Integer jumpSkuBrother(Integer sku) {
        return baseMapper.jumpSkuBrother(sku);
    }

    @Override
    public ScoreDetailVO getScoreDetailBySku(String sku) {
        return baseMapper.getScoreDetailBySku(sku);
    }
}
